
//
//import static org.junit.Assert.*;
//
//import java.io.IOException;
//import java.sql.SQLException;
//import java.sql.Timestamp;
//
//import org.junit.*;
//
//import com.maxmind.geoip.Location;
//import com.maxmind.geoip.LookupService;
//import com.maxmind.geoip.regionName;
//import com.maxmind.geoip.timeZone;
//import project-3-logging.LogHandler;

public class JUnitTests{
//	@Test
//	public void test1(){
//		boolean failed = false;
//		try {
//		    LookupService cl = new LookupService("./GeoLiteCity.dat",
//			LookupService.GEOIP_MEMORY_CACHE );
//	        Location l1 = cl.getLocation("64.233.161.99");
//	        Location l2 = cl.getLocation("141.233.198.102");
//		    System.out.println("countryCode: " + l2.countryCode +
//	                               "\n countryName: " + l2.countryName +
//	                               "\n region: " + l2.region +
//	                               "\n regionName: " + regionName.regionNameByCode(l2.countryCode, l2.region) +
//	                               "\n city: " + l2.city +
//	                               "\n postalCode: " + l2.postalCode +
//	                               "\n latitude: " + l2.latitude +
//	                               "\n longitude: " + l2.longitude +
//	                               "\n distance: " + l2.distance(l1) +
//	                               "\n distance: " + l1.distance(l2) + 
//	                               "\n metro code: " + l2.metro_code +
//	                               "\n area code: " + l2.area_code +
//	                               "\n timezone: " + timeZone.timeZoneByCountryAndRegion(l2.countryCode, l2.region));
//		    cl.close();
//		}
//		catch (IOException e) {
//		    //System.out.println("IO Exception: " + e);
//		    failed = true;
//		}
//		
//		assertFalse(failed);	 
//	}	
//	
//
//	@Test
//	public void test2() throws SQLException{
//
//		String IP = "123.123.122";
//		String User = "22orra54@uwosh.edu";
//		String Region = "Wisconsin";
//		String City = "Oshkosh";
//		String Country = "USA";	
//		String Name = "Vizzz2";
//		java.util.Date today = new java.util.Date();
//		Timestamp ViewDate  = new java.sql.Timestamp(today.getTime());
//		
//		assertFalse(LogHandler.insertIP(IP, User, Region, City, Country));
//		assertFalse(LogHandler.insertVisualization(Name, IP, User, ViewDate));
//		
//		assertFalse(LogHandler.deleteIP(IP, User));
//		assertFalse(LogHandler.deleteVisualization(Name, IP, User, ViewDate));
//	}


}
